

//邮箱认证弹框
$('#emailTip').on('click',function(){
		  $("#basic").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content:'<div class="msg-con" style="line-height:180px">验证成功，请完善资料加入3号仓挑选产品</div>',
            isCloseOnOverlayClick:false
        });
        
        
        setTimeout(function(){
        	$('#basic').css({
        		'display':'none'	
        	});
        	$(location).attr('href', './注册基本信息.html');
        },3000);
	})




//认证资料弹出框
  $('#smtTip').on('click',function(){
		  $("#basic").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content:'<div class="msg-con">	<i class="iconfont icon-iconfontzhizuobiaozhunBduan-" style="display:inline-block;width:100px;height:53px;color: #DA8589;font-size:53px;"></i><p class="text-left">辛苦了，我们会尽快审核资料，并以邮件方式告知，请及时查收。</p></div>',
            isCloseOnOverlayClick:false
        });
        
        
        
       setTimeout(function(){
        	$('.smartBox_header_close_normal').click();
        	$(location).attr('href', '../index.html');
        },3000);
   
	})
 






	$('.delTip').on('click',function(){
		
			console.log()
		  $("#basic").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="margin-top:30px;margin-bottom: 20px;">您确定删除吗？</p><a href="javascript:;" id="ok" class="btn x-btn-danger m-r">确定</a><a href="javascript:;" id="cancel" class="btn x-btn2">取消</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#cancel').click(function(){
        	
        	$('.smartBox_header_close_normal').click();
        	return false;
        })
       
       
         $('#ok').click(function(){
        	$('.smartBox_header_close_normal').click();
        	return true;
        });
   
   
  
   
		
	})
	
	
	
	 	$('.send-order').on('click',function(){
   	
		  $("#showlist").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="margin-top:30px;margin-bottom: 20px;"></p><a href="javascript:;" id="buyOrder" class="btn x-btn-danger m-r">买单</a><a href="javascript:;" id="saleOrder" class="btn x-btn2"> 卖单</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#saleOrder').click(function(){
      		 $(location).attr("href",'./发布卖单.html');
        	
        })
       
       
         $('#buyOrder').click(function(){
        	$(location).attr("href",'./发布买单.html');
        	
        });
   
		
	})   
	
   
   
   
   
   	//申请业务关联弹框
	 	$('.com').on('click',function(){
   	
		  $("#comApply").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="margin-top:30px;text-align:left;">尊敬的用户:</p><p style="text-align:left;margin-bottom:30px">您好，您申请的业务关联请求已发送，请等待渠道商回馈。</p><a href="javascript:;" id="comOk" class="btn x-btn-danger m-r">确定</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })
       	
	})   
   
	

//承兑汇票弹框
	 	$('.huiPiaoTip').on('click',function(){
	 		console.log(2333);
		  $("#huiPiao").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="margin-top:30px;text-align:left;">尊敬的用户:</p><p style="text-align:left;margin-bottom:30px">您好！您提交的汇票资料已发送至后台审核，我们工作人员会及时和您联系。</p><a href="javascript:;" id="huiPiaoOk" class="btn x-btn-danger m-r">确定</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#huiPiaoOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })
       	
	})   
   
   
   
   
 //确认订单弹框--匿名确认弹框
 	$('.noNameTip').on('click',function(){
	 		
		  $("#confirmOrder").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">是否匿名确认该笔订单请求</p><a href="javascript:;" id="comfirmOk" class="btn x-btn-danger m-r">确定</a><a href="javascript:;" id="comfirmCancel" class="btn x-btn2 m-r">取消</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comfirmOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })
        
          $('#comfirmCancel').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return false;
        	
        })
       });
          
  //确认订单弹框--拒绝订单弹框
 	$('.rejectTip').on('click',function(){
	 		
		  $("#confirmOrder").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">您已拒绝该笔订单请求</p><a href="javascript:;" id="comfirmOk" class="btn x-btn-danger m-r">确定</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comfirmOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })  	
	})   
 
 
 
 
 
 
 
 //物流登记弹框
 
 	$('.goodsTip').on('click',function(){

		  $("#goodsPop").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">已成功登记物流请求</p><a href="javascript:;" id="comfirmOk" class="btn x-btn-danger m-r">确定</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comfirmOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })  	
	})   
 
 
 
 //
 
  //确认收货弹框--匿名确认弹框
 	$('.c-goodstip').on('click',function(){
	 		
		  $("#cGoodsPop").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">是否确认收货，确认后平台将把80%货款打至卖方账户！</p><a href="javascript:;" id="comfirmOk" class="btn x-btn-danger m-r">确定</a><a href="javascript:;" id="comfirmCancel" class="btn x-btn2 m-r">取消</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comfirmOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
      		
    	$("#cSucPop").smartbox({
          title:"",
          width: 500,
         height:280,
          isShowFooter:false,
          content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">确认成功，待卖家邮寄发票</p><a href="javascript:;" id="ok" class="btn x-btn-danger m-r">确定</a></div>',
          isCloseOnOverlayClick:false
      });
      
      	$('#ok').click(function(){
         	$('.smartBox_header_close_normal').click();
        	return true;
        	
         })
 
      
    	
     	return true;
        	
        })
        
         $('#comfirmCancel').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return false;
        	
        })
          
          
          
         
          
       });
       
       
 
 
 


//确认发票弹框--是否确认验票弹框
 	$('.c-billtip').on('click',function(){
	 		console.log(5555);
		  $("#cBillPop").smartbox({
            title:"",
            width: 500,
            height:280,
            isShowFooter:false,
            content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">是否确认验票，确认后平台将把剩余20%货款打至卖方账户！</p><a href="javascript:;" id="comfirmOk" class="btn x-btn-danger m-r">确定</a><a href="javascript:;" id="comfirmCancel" class="btn x-btn2 m-r">取消</a></div>',
            isCloseOnOverlayClick:false
        });
        
        
        $('#comfirmOk').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
      		
      		
      		//交易成功弹框
    	$("#cSucPop").smartbox({
          title:"",
          width: 500,
         height:280,
          isShowFooter:false,
          content: '<div class="msg-con"><p style="text-align:center;margin-bottom:30px">交易成功，请评价本次交易</p><a href="javascript:;" id="ok" class="btn x-btn-danger m-r">确定</a></div>',
          isCloseOnOverlayClick:false
      });
      
      	$('#ok').click(function(){
         	$('.smartBox_header_close_normal').click();
        	return true;
        	
         })
 
      
    	
     	return true;
        	
        })
        
         $('#comfirmCancel').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return false;
        	
        })
          
   })
 	
//新增产品弹框
 	$('.addProduct').on('click',function(){



		  $("#basic").smartbox({
            title:"产品信息",
            width: 500,
            height:518,
            isShowFooter:false,
            content: '<div class="msg-con"> <div class="x-ibox-content"><div class="form-horizontal"><div class="form-group"><label class="col-sm-2 col-xs-2 control-label col-width-2">名称:</label><div class="col-sm-6  col-xs-6"> <input type="text" class="form-control" placeholder="请输入名称" style="width:280px"/></div> </div>\n'+
                    
                    '<div class="form-group">  <label class="col-sm-2  col-xs-2 control-label col-width-2">品牌:</label>  <div class="col-sm-6  col-xs-6"> <input type="text" class="form-control" placeholder="请输入品牌"    style="width:280px"/> </div> </div>\n'+
                    
                    
                    '<div class="form-group">       <label class="col-sm-2  col-xs-2 control-label col-width-2">型号:</label>     <div class="col-sm-6  col-xs-6">   <input type="text" class="form-control" placeholder="请输入型号" />    </div>  </div>\n'+
                    
                     
                    '<div class="form-group">       <label class="col-sm-2  col-xs-2 control-label col-width-2">类型:</label>     <div class="col-sm-6  col-xs-6">   <input type="text" class="form-control" placeholder="请输入类型" />    </div>  </div>\n'+
                    
                 
                    '<div class="form-group">  <label class="col-sm-2  col-xs-2 control-label col-width-2">产品图片:</label> <div class="col-sm-6  col-xs-6">   <div class="m-inputicon">     <i class="fa fa-plus"></i>    <input type="file">   </div> </div> </div>\n'+
                    
               		'<div class="form-group"><label class="col-sm-2  col-xs-2 control-label"></label>  <div class="col-sm-6  col-xs-6"><button type="button"  id="ok" class="btn x-btn-danger m-r-sm">提交申请</button>  	   </div>  </div>	</div>\n'+
				
				'<div class="form-group">  <label class="col-sm-2  col-xs-2 control-label col-width-2">批量申请:</label>  <div class="col-sm-6  col-xs-6">	<p class = "form-control-static" style="text-align:left"><a href="javascript:;" class="x-color-tip">1.点击下载模板</a></p>    </div> </div><div class="form-group"><label class="col-sm-2  col-xs-2 control-label col-width-2"></label> <div class="col-sm-6  col-xs-6"><p class = "form-control-static x-colot-tip" style="text-align:left">2.批量申请，上传文件，等待后台审核</p></div></div></div></div>',
           
           isCloseOnOverlayClick:false
        });
        
        
        $('#ok').click(function(){
      		
      		$('.smartBox_header_close_normal').click();
        	return true;
        	
        })  	
	})   
 

 






